package com.tyun.common.utils;

import java.util.Map;

/**
 * 返回值
 *
 * @author congcong tao
 * @date 2018/1/24 9:24
 */
public class ResultDTO {

    /**
     * 返回状态，success表示成功，error表示失败
     */
    private String code;
    /**
     * 返回字符串
     */
    private String msg;
    /**
     * 成功时，返回的参数
     */
    private Object result;

    private Map<String, Object> map;

    public ResultDTO() {
    }

    public ResultDTO(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResultDTO(String code, String msg, Object result) {
        this.code = code;
        this.msg = msg;
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }
}
